package com.example.userservice;

import com.example.feign.config.FeignConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@Slf4j
@EnableFeignClients(defaultConfiguration = FeignConfiguration.class, basePackages = "com.example.feign.client")
@SpringBootApplication
@ComponentScan(basePackages = {"com.example.commom.utils", "com.example.userservice"})
public class UserServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserServiceApplication.class, args);
        log.info("user-service 开始启动......");
    }

}
